package jd.monitor.attach.config;

import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

public class BeanConfig extends ConfigBase {

	@XStreamAsAttribute
	private String replaceFile;
	
	@XStreamAsAttribute
	private String timerAttach;
	
	@XStreamImplicit(itemFieldName="method")
	private List<MethodConfig> methodList ;
	
	public List<MethodConfig> getMethodList() {
		return methodList;
	}

	public void setMethodList(List<MethodConfig> methodList) {
		this.methodList = methodList;
	}
	
	public String getReplaceFile() {
		return replaceFile;
	}

	public void setReplaceFile(String replaceFile) {
		this.replaceFile = replaceFile;
	}

	public String getTimerAttach() {
		return timerAttach;
	}

	public void setTimerAttach(String timerAttach) {
		this.timerAttach = timerAttach;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}

}
